package com.djzz.app.wdy.net;

import com.android.volley.TimeoutError;
import com.android.volley.VolleyError;
import com.android.volley.toolbox.Authenticator;
import com.djzz.app.common_util.net.HttpCallBack;
import com.djzz.app.common_util.net.bean.ResponseBean;

/**
 * Created by d on 2017/8/31.
 */

public abstract class HttpListener<T extends ResponseBean> extends HttpCallBack<T> {

    @Override
    public void onError(VolleyError error) {
        if(error instanceof TimeoutError){ // 超时

        }else if(error instanceof Authenticator){ // 权限

        }else{ // 其他

        }
    }
}
